home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / drdtips.zip / 1305.TXT < prev    next >
Text File  |  1991-12-31  |  5KB  |  102 lines

  1. Document 1305
  2. MEMORY USE
  3.  
  4. Description:
  5.  
  6. When using the EMM386.SYS device driver, you may notice that the
  7. MEM command can display a memory report that seems to show more
  8. memory available than exists on your computer. For example,
  9. consider the following EMM386.SYS device driver line on a
  10. computer with 3,072 Kbytes of Extended memory:
  11.  
  12. DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO /K=AUTO /B=FFFF /R=AUTO
  13.  
  14. This line has the effect of converting all Extended memory into
  15. Extended via XMS and EMS (expanded) memory. The resulting MEM
  16. report might show that the computer has 3,072 Kbytes of Extended
  17. memory and 3,072 Kbytes of EMS memory under the "Total Bytes"
  18. column, with 2,864 Kbytes of Extended via XMS memory and 2,864
  19. Kbytes of EMS memory under the "Available" column as shown below.
  20.  
  21.         | Memory Type -------- Total ---------- Available ---|
  22.         |                  |                |                |
  23.         | Conventional     |    (    60K )  |    (   626K )  |
  24.         | Upper            |    (    96K )  |    (    79K )  |
  25.         | High             |    (    64K )  |    (    18K )  |
  26.         | Extended         |    ( 3,072K )  |    (     0K )  |
  27.         | Extended via XMS |        N/A     |    ( 2,864K )  |
  28.         | EMS              |    ( 3,072K )  |    ( 2,864K )  |
  29.         |----------------------------------------------------|
  30.  
  31.         
  32.  
  33. To understand this, it might be helpful to view the total
  34. Extended memory available on a computer as comprising a dynamic
  35. pool of memory. This memory can be viewed as dynamic because it
  36. is available to be accessed either as Extended via XMS memory or
  37. as EMS (expanded) memory depending on the "/K" setting on the
  38. EMM386.SYS device driver. In the case shown above, "/K=AUTO"
  39. tells EMM386.SYS to allow ALL of the Extended memory pool to be
  40. accessed as Extended via XMS memory and EMS memory in equal
  41. portions. The MEM command therefore shows both amounts of memory
  42. as being available because you or your applications might want
  43. to use a portion or all of the memory pool as either Extended
  44. via XMS memory or EMS memory. The "/K" switch can be used to put
  45. a limit on the amount of EMS memory to be created from the total
  46. memory pool. The following EMM386.SYS device driver line on the
  47. same computer with 3,072 Kbytes of Extended memory will limit
  48. the amount of EMS memory to be created from the total memory
  49. pool by setting the "/K" option to "/K=1024":
  50.  
  51. DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO /K=1024 /B=FFFF /R=AUTO
  52.  
  53. This line will still cause EMM386.SYS to convert all of the
  54. memory pool into Extended via XMS, but it will limit the amount
  55. of EMS to 1,024 Kbytes. The resulting MEM report might show that
  56. the computer has 3,072 Kbytes of Extended memory and 1,024
  57. Kbytes of EMS memory under the "Total Bytes" column, with 2,864
  58. Kbytes of Extended via XMS memory still available but only 896
  59. Kbytes of EMS memory under the "Available" column as shown below.
  60.  
  61.         | Memory Type -------- Total ---------- Available ---|
  62.         |                  |                |                |
  63.         | Conventional     |    (   640K )  |    (   626K )  |
  64.         | Upper            |    (    96K )  |    (    79K )  |
  65.         | High             |    (    64K )  |    (    17K )  |
  66.         | Extended         |    ( 3,072K )  |    (     0K )  |
  67.         | Extended via XMS |        N/A     |    ( 2,864K )  |
  68.         | EMS              |    ( 1,024K )  |    (   896K )  |
  69.         |----------------------------------------------------|
  70.  
  71. You will notice in both of the above examples, that there is a
  72. difference between the "Total Bytes" of Extended memory and the
  73. "Available" bytes of Extended via XMS memory and a similar
  74. difference between the "Total Bytes" of EMS memory and the
  75. "Available" bytes of EMS memory. This is due to the amount of
  76. "overhead" memory used by the EMM386.SYS software to convert the
  77. memory pool into both types of available memory.
  78.  
  79. XMS memory is extended memory created by memory management
  80. software which conforms to the XMS specification developed by
  81. Lotus, Intel, and Microsoft. The DR DOS memory management
  82. software device driver (EMM386.SYS) fully supports this
  83. specification and, as a result, initially converts ALL of the
  84. computer's available extended memory into XMS extended memory.
  85. This is the reason that there is no "Extended" memory listed in
  86. the "Available" column of the DR DOS MEM report; it has all been
  87. converted to XMS memory by the EMM386.SYS device driver. This is
  88. also the reason why Extended via XMS lists as "N/A" under the
  89. "Total Bytes" column; XMS memory is created by a software device
  90. driver and is not present at boot time.
  91.  
  92. Note:  EMS memory is listed with a specific value under the
  93. "Total Bytes" column by the MEM report unlike the Extended via
  94. XMS listing. EMS memory can be created by a software device
  95. driver (like EMM386.SYS alone) or can be created by EMS (LIM
  96. 4.0) hardware memory boards and their accompanying device
  97. driver. This specific value is intended to reflect this EMS
  98. memory created by the "/K" option on the EMM386.SYS device
  99. driver line or "hardware" EMS memory created by certain
  100. platforms, typically non- 386/386sx/486 platforms, which  
  101. actually contain EMS (LIM 4.0) hardware.
  102.